package org.yejiali.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author:yejiali
 * @Date:2025/2/18-02-18-13:57
 * @Decsription:org.yejiali.domain.vo
 * @Version:1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleDetailVo {
    private Long id;
    //标题
    private String title;
    //文章内容
    private String content;
    //所属分类id
    private Long categoryId;
    //分类名称
    @TableField(exist = false)
    private String categoryName;
    //是否置顶（0否，1是）
    //访问量
    private Long viewCount;
    //是否允许评论 1是，0否
    private String isComment;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}
